package io.geekidea.boot.test.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.geekidea.boot.framework.page.Paging;
import io.geekidea.boot.test.dto.CollegesDto;
import io.geekidea.boot.test.entity.Colleges;
import io.geekidea.boot.test.query.CollegesQuery;
import io.geekidea.boot.test.vo.CollegesVo;
import io.geekidea.boot.test.query.AppCollegesQuery;
import io.geekidea.boot.test.vo.AppCollegesVo;


/**
 *  服务接口
 *
 * @author geekidea
 * @since 2025-02-19
 */
public interface CollegesService extends IService<Colleges> {

    /**
     * 添加
     *
     * @param dto
     * @return
     * @throws Exception
     */
    boolean addColleges(CollegesDto dto);

    /**
     * 修改
     *
     * @param dto
     * @return
     * @throws Exception
     */
    boolean updateColleges(CollegesDto dto);

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteColleges(Long id);

    /**
     * 详情
     *
     * @param id
     * @return
     * @throws Exception
     */
    CollegesVo getCollegesById(Long id);

    /**
     * 分页列表
     *
     * @param query
     * @return
     * @throws Exception
     */
    Paging<CollegesVo> getCollegesPage(CollegesQuery query);

    /**
     * Appnull详情
     *
     * @param id
     * @return
     * @throws Exception
     */
    AppCollegesVo getAppCollegesById(Long id);

    /**
     * Appnull分页列表
     *
     * @param query
     * @return
     * @throws Exception
     */
    Paging<AppCollegesVo> getAppCollegesPage(AppCollegesQuery query);

}
